package com.LostAndFound.dao;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

import com.LostAndFound.utils.DataSourceUtils;

public class CheckIssueDao {

	// 允许发布
	public void confrimIssueCheckInfo(String aid) throws SQLException {
		QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource());
		String sql = "update article set foundflag = 1, invalidflag = 1 where aid = ?";
		runner.update(sql,aid);
	}
	// 标为虚假欺诈
	public void markedAsFlase(String aid) throws SQLException {
		QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource());
		String sql = "update article set foundflag = 4, invalidflag = 4 where aid = ?";
		runner.update(sql,aid);
	}

}
